.class public Lcom/opongo/blogapp/api/HTTPConnect;
.super Landroid/app/Activity;
.source "HTTPConnect.java"


# static fields
#the value of this static final field might be set in the static constructor
.field public static final DEBUG:Z = false

.field private static final TAG:Ljava/lang/String; = null

.field private static bundleIdentifierString:Ljava/lang/String; = null

.field private static bundleVersion:Ljava/lang/String; = null

.field private static domainKey:Ljava/lang/String; = null

.field private static final secureDataExtraction:Ljava/lang/String; = "true"

.field public static url:Ljava/net/URL;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 57
    sget-boolean v0, Lcom/opongo/blogapp/AbaSettings;->DEBUG:Z

    sput-boolean v0, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    .line 58
    const-class v0, Lcom/opongo/blogapp/api/HTTPConnect;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    .line 62
    const-string v0, "AndroidSKey"

    sput-object v0, Lcom/opongo/blogapp/api/HTTPConnect;->domainKey:Ljava/lang/String;

    .line 63
    const-string v0, "com.opongo.android"

    sput-object v0, Lcom/opongo/blogapp/api/HTTPConnect;->bundleIdentifierString:Ljava/lang/String;

    .line 64
    const-string v0, "4.2"

    sput-object v0, Lcom/opongo/blogapp/api/HTTPConnect;->bundleVersion:Ljava/lang/String;

    .line 54
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 54
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method protected static sendToStats(Ljava/util/List;Landroid/content/Context;)Lorg/json/JSONObject;
    .locals 26
    .parameter
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Landroid/content/Context;",
            ")",
            "Lorg/json/JSONObject;"
        }
    .end annotation

    .prologue
    .line 293
    .local p0, nameValuePairs:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    new-instance v5, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v5}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V

    .line 295
    .local v5, httpClient:Lorg/apache/http/client/HttpClient;
    const/16 v20, 0x0

    .line 296
    .local v20, stats_url:Ljava/net/URL;
    const v23, 0x7f070009

    move-object/from16 v0, p1

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v22

    .line 298
    .local v22, urlString:Ljava/lang/String;
    :try_start_0
    new-instance v21, Ljava/net/URL;

    invoke-direct/range {v21 .. v22}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    .end local v20           #stats_url:Ljava/net/URL;
    .local v21, stats_url:Ljava/net/URL;
    move-object/from16 v20, v21

    .line 304
    .end local v21           #stats_url:Ljava/net/URL;
    .restart local v20       #stats_url:Ljava/net/URL;
    :goto_0
    new-instance v14, Lorg/apache/http/client/methods/HttpPost;

    invoke-virtual/range {v20 .. v20}, Ljava/net/URL;->toString()Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    invoke-direct {v14, v0}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 307
    .local v14, postMethod:Lorg/apache/http/client/methods/HttpPost;
    new-instance v23, Ljava/lang/StringBuilder;

    sget-object v24, Lcom/opongo/blogapp/api/HTTPConnect;->domainKey:Ljava/lang/String;

    invoke-static/range {v24 .. v24}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v24

    invoke-direct/range {v23 .. v24}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {v20 .. v20}, Ljava/net/URL;->getHost()Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v23 .. v23}, Lcom/opongo/blogapp/utils/DigestUtils;->md5(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 309
    .local v2, bp:Ljava/lang/String;
    new-instance v12, Ljava/util/ArrayList;

    const/16 v23, 0x0

    move/from16 v0, v23

    invoke-direct {v12, v0}, Ljava/util/ArrayList;-><init>(I)V

    .line 311
    .local v12, nameValuePairsCopy:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-interface/range {p0 .. p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v23

    :cond_0
    :goto_1
    invoke-interface/range {v23 .. v23}, Ljava/util/Iterator;->hasNext()Z

    move-result v24

    if-nez v24, :cond_3

    .line 316
    new-instance v23, Lorg/apache/http/message/BasicNameValuePair;

    const-string v24, "bp"

    move-object/from16 v0, v23

    move-object/from16 v1, v24

    invoke-direct {v0, v1, v2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v0, v23

    invoke-interface {v12, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 318
    const/4 v7, 0x0

    .line 320
    .local v7, json:Lorg/json/JSONObject;
    :try_start_1
    new-instance v23, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    .line 321
    const-string v24, "UTF-8"

    move-object/from16 v0, v23

    move-object/from16 v1, v24

    invoke-direct {v0, v12, v1}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    .line 320
    move-object/from16 v0, v23

    invoke-virtual {v14, v0}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 323
    invoke-interface {v5, v14}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v16

    .line 327
    .local v16, response:Lorg/apache/http/HttpResponse;
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_1

    .line 328
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    invoke-interface/range {v16 .. v16}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v24

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 330
    :cond_1
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_2

    .line 331
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v24, Ljava/lang/StringBuilder;

    const-string v25, "Params URL: "

    invoke-direct/range {v24 .. v25}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {v20 .. v20}, Ljava/net/URL;->toString()Ljava/lang/String;

    move-result-object v25

    invoke-virtual/range {v24 .. v25}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v24

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 332
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v24, Ljava/lang/StringBuilder;

    const-string v25, "Params: "

    invoke-direct/range {v24 .. v25}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {p0 .. p0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v25

    invoke-virtual/range {v24 .. v25}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v24

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 335
    :cond_2
    invoke-interface/range {v16 .. v16}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v4

    .line 337
    .local v4, entity:Lorg/apache/http/HttpEntity;
    if-eqz v4, :cond_5

    .line 339
    invoke-interface {v4}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object v6

    .line 340
    .local v6, instream:Ljava/io/InputStream;
    new-instance v15, Ljava/io/BufferedReader;

    .line 341
    new-instance v23, Ljava/io/InputStreamReader;

    move-object/from16 v0, v23

    invoke-direct {v0, v6}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    .line 340
    move-object/from16 v0, v23

    invoke-direct {v15, v0}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 342
    .local v15, reader:Ljava/io/BufferedReader;
    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    .line 344
    .local v19, sb:Ljava/lang/StringBuilder;
    const/4 v9, 0x0

    .line 345
    .local v9, line:Ljava/lang/String;
    :goto_2
    invoke-virtual {v15}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v9

    if-nez v9, :cond_4

    .line 348
    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    .line 350
    .local v17, result:Ljava/lang/String;
    const-string v13, "\\[BSDATA\\](.*?)\\[\\/BSDATA\\]"

    .line 351
    .local v13, pattern:Ljava/lang/String;
    move-object/from16 v18, v17

    .line 353
    .local v18, s:Ljava/lang/String;
    invoke-static {v13}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v23

    move-object/from16 v0, v23

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v10

    .line 354
    .local v10, m:Ljava/util/regex/Matcher;
    :goto_3
    invoke-virtual {v10}, Ljava/util/regex/Matcher;->find()Z

    move-result v23

    if-nez v23, :cond_6

    .line 357
    invoke-virtual {v6}, Ljava/io/InputStream;->close()V

    .line 358
    new-instance v8, Lorg/json/JSONObject;

    move-object/from16 v0, v17

    invoke-direct {v8, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/net/UnknownHostException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_4
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_5

    .end local v7           #json:Lorg/json/JSONObject;
    .local v8, json:Lorg/json/JSONObject;
    move-object v7, v8

    .line 385
    .end local v4           #entity:Lorg/apache/http/HttpEntity;
    .end local v6           #instream:Ljava/io/InputStream;
    .end local v8           #json:Lorg/json/JSONObject;
    .end local v9           #line:Ljava/lang/String;
    .end local v10           #m:Ljava/util/regex/Matcher;
    .end local v13           #pattern:Ljava/lang/String;
    .end local v15           #reader:Ljava/io/BufferedReader;
    .end local v16           #response:Lorg/apache/http/HttpResponse;
    .end local v17           #result:Ljava/lang/String;
    .end local v18           #s:Ljava/lang/String;
    .end local v19           #sb:Ljava/lang/StringBuilder;
    .restart local v7       #json:Lorg/json/JSONObject;
    :goto_4
    return-object v8

    .line 299
    .end local v2           #bp:Ljava/lang/String;
    .end local v7           #json:Lorg/json/JSONObject;
    .end local v12           #nameValuePairsCopy:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    .end local v14           #postMethod:Lorg/apache/http/client/methods/HttpPost;
    :catch_0
    move-exception v3

    .line 301
    .local v3, e:Ljava/net/MalformedURLException;
    invoke-virtual {v3}, Ljava/net/MalformedURLException;->printStackTrace()V

    goto/16 :goto_0

    .line 311
    .end local v3           #e:Ljava/net/MalformedURLException;
    .restart local v2       #bp:Ljava/lang/String;
    .restart local v12       #nameValuePairsCopy:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    .restart local v14       #postMethod:Lorg/apache/http/client/methods/HttpPost;
    :cond_3
    invoke-interface/range {v23 .. v23}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lorg/apache/http/NameValuePair;

    .line 312
    .local v11, nameValuePair:Lorg/apache/http/NameValuePair;
    invoke-interface {v11}, Lorg/apache/http/NameValuePair;->getName()Ljava/lang/String;

    move-result-object v24

    const-string v25, "db"

    invoke-virtual/range {v24 .. v25}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v24

    if-nez v24, :cond_0

    .line 313
    invoke-interface {v12, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 346
    .end local v11           #nameValuePair:Lorg/apache/http/NameValuePair;
    .restart local v4       #entity:Lorg/apache/http/HttpEntity;
    .restart local v6       #instream:Ljava/io/InputStream;
    .restart local v7       #json:Lorg/json/JSONObject;
    .restart local v9       #line:Ljava/lang/String;
    .restart local v15       #reader:Ljava/io/BufferedReader;
    .restart local v16       #response:Lorg/apache/http/HttpResponse;
    .restart local v19       #sb:Ljava/lang/StringBuilder;
    :cond_4
    :try_start_2
    new-instance v23, Ljava/lang/StringBuilder;

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v24

    invoke-direct/range {v23 .. v24}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v24, "n"

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v19

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_2
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/net/UnknownHostException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_4
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_5

    goto :goto_2

    .line 361
    .end local v4           #entity:Lorg/apache/http/HttpEntity;
    .end local v6           #instream:Ljava/io/InputStream;
    .end local v9           #line:Ljava/lang/String;
    .end local v15           #reader:Ljava/io/BufferedReader;
    .end local v16           #response:Lorg/apache/http/HttpResponse;
    .end local v19           #sb:Ljava/lang/StringBuilder;
    :catch_1
    move-exception v3

    .line 362
    .local v3, e:Lorg/apache/http/client/ClientProtocolException;
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_5

    .line 363
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v24, "ClientPrococolException in getJSONObject"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 385
    .end local v3           #e:Lorg/apache/http/client/ClientProtocolException;
    :cond_5
    :goto_5
    const/4 v8, 0x0

    goto :goto_4

    .line 355
    .restart local v4       #entity:Lorg/apache/http/HttpEntity;
    .restart local v6       #instream:Ljava/io/InputStream;
    .restart local v9       #line:Ljava/lang/String;
    .restart local v10       #m:Ljava/util/regex/Matcher;
    .restart local v13       #pattern:Ljava/lang/String;
    .restart local v15       #reader:Ljava/io/BufferedReader;
    .restart local v16       #response:Lorg/apache/http/HttpResponse;
    .restart local v17       #result:Ljava/lang/String;
    .restart local v18       #s:Ljava/lang/String;
    .restart local v19       #sb:Ljava/lang/StringBuilder;
    :cond_6
    const/16 v23, 0x1

    :try_start_3
    move/from16 v0, v23

    invoke-virtual {v10, v0}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
    :try_end_3
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/net/UnknownHostException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_4
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_5

    move-result-object v17

    goto :goto_3

    .line 365
    .end local v4           #entity:Lorg/apache/http/HttpEntity;
    .end local v6           #instream:Ljava/io/InputStream;
    .end local v9           #line:Ljava/lang/String;
    .end local v10           #m:Ljava/util/regex/Matcher;
    .end local v13           #pattern:Ljava/lang/String;
    .end local v15           #reader:Ljava/io/BufferedReader;
    .end local v16           #response:Lorg/apache/http/HttpResponse;
    .end local v17           #result:Ljava/lang/String;
    .end local v18           #s:Ljava/lang/String;
    .end local v19           #sb:Ljava/lang/StringBuilder;
    :catch_2
    move-exception v3

    .line 366
    .local v3, e:Ljava/net/UnknownHostException;
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_7

    .line 367
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v24, "UnknownHostException in getJSONObject"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 368
    :cond_7
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_5

    .line 369
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v24, "This most likely means we have no network"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_5

    .line 371
    .end local v3           #e:Ljava/net/UnknownHostException;
    :catch_3
    move-exception v3

    .line 372
    .local v3, e:Ljava/io/IOException;
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_5

    .line 373
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v24, "IOException in getJSONObject"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_5

    .line 375
    .end local v3           #e:Ljava/io/IOException;
    :catch_4
    move-exception v3

    .line 376
    .local v3, e:Lorg/json/JSONException;
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_5

    .line 377
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v24, "JSONException in getJSONObject"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_5

    .line 379
    .end local v3           #e:Lorg/json/JSONException;
    :catch_5
    move-exception v3

    .line 380
    .local v3, e:Ljava/lang/Exception;
    sget-boolean v23, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v23, :cond_5

    .line 381
    sget-object v23, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v24, "Generic Exception in getJSONObject"

    invoke-static/range {v23 .. v24}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_5
.end method


# virtual methods
.method public getJSONObjectWithPost(Ljava/util/List;Landroid/content/Context;Z[Landroid/graphics/Bitmap;)Lorg/json/JSONObject;
    .locals 43
    .parameter
    .parameter "context"
    .parameter "sendToStats"
    .parameter "images"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Landroid/content/Context;",
            "Z[",
            "Landroid/graphics/Bitmap;",
            ")",
            "Lorg/json/JSONObject;"
        }
    .end annotation

    .prologue
    .line 71
    .local p1, nameValuePairs:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    new-instance v12, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v12}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V

    .line 74
    .local v12, httpClient:Lorg/apache/http/client/HttpClient;
    :try_start_0
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_8

    .line 75
    new-instance v39, Ljava/net/URL;

    const v40, 0x7f070008

    move-object/from16 v0, p2

    move/from16 v1, v40

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v40

    invoke-direct/range {v39 .. v40}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    sput-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0

    .line 85
    :goto_0
    const v39, 0x7f070006

    move-object/from16 v0, p2

    move/from16 v1, v39

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v39

    sput-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->domainKey:Ljava/lang/String;

    .line 86
    const v39, 0x7f07000a

    move-object/from16 v0, p2

    move/from16 v1, v39

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v39

    const-string v40, ""

    invoke-virtual/range {v39 .. v40}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v39

    if-eqz v39, :cond_9

    .line 87
    invoke-virtual/range {p2 .. p2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v39

    sput-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->bundleIdentifierString:Ljava/lang/String;

    .line 93
    :goto_1
    sget-object v36, Lcom/opongo/blogapp/api/HTTPConnect;->bundleVersion:Ljava/lang/String;

    .line 96
    .local v36, versionName:Ljava/lang/String;
    :try_start_1
    invoke-virtual/range {p2 .. p2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v39

    .line 97
    invoke-virtual/range {p2 .. p2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v40

    const/16 v41, 0x0

    .line 96
    invoke-virtual/range {v39 .. v41}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v39

    .line 97
    move-object/from16 v0, v39

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    move-object/from16 v36, v0
    :try_end_1
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_1

    .line 102
    :goto_2
    sput-object v36, Lcom/opongo/blogapp/api/HTTPConnect;->bundleVersion:Ljava/lang/String;

    .line 104
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_0

    .line 105
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v40, Ljava/lang/StringBuilder;

    const-string v41, "BlogHost: "

    invoke-direct/range {v40 .. v41}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v41, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;

    invoke-virtual/range {v41 .. v41}, Ljava/net/URL;->getHost()Ljava/lang/String;

    move-result-object v41

    invoke-virtual/range {v40 .. v41}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 107
    :cond_0
    new-instance v26, Lorg/apache/http/client/methods/HttpPost;

    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;

    invoke-virtual/range {v39 .. v39}, Ljava/net/URL;->toString()Ljava/lang/String;

    move-result-object v39

    move-object/from16 v0, v26

    move-object/from16 v1, v39

    invoke-direct {v0, v1}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 110
    .local v26, postMethod:Lorg/apache/http/client/methods/HttpPost;
    new-instance v39, Ljava/lang/StringBuilder;

    sget-object v40, Lcom/opongo/blogapp/api/HTTPConnect;->domainKey:Ljava/lang/String;

    invoke-static/range {v40 .. v40}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v40

    invoke-direct/range {v39 .. v40}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v40, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;

    invoke-virtual/range {v40 .. v40}, Ljava/net/URL;->getHost()Ljava/lang/String;

    move-result-object v40

    invoke-virtual/range {v39 .. v40}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v39

    invoke-virtual/range {v39 .. v39}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v39

    invoke-static/range {v39 .. v39}, Lcom/opongo/blogapp/utils/DigestUtils;->md5(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 113
    .local v5, bp:Ljava/lang/String;
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "bp"

    move-object/from16 v0, v39

    move-object/from16 v1, v40

    invoke-direct {v0, v1, v5}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 114
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "bundleIdentifierString"

    .line 115
    sget-object v41, Lcom/opongo/blogapp/api/HTTPConnect;->bundleIdentifierString:Ljava/lang/String;

    invoke-direct/range {v39 .. v41}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 114
    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 117
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "bundleVersion"

    .line 118
    sget-object v41, Lcom/opongo/blogapp/api/HTTPConnect;->bundleVersion:Ljava/lang/String;

    invoke-direct/range {v39 .. v41}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 117
    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 119
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "secureDataExtraction"

    .line 120
    const-string v41, "true"

    invoke-direct/range {v39 .. v41}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 119
    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 121
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "model"

    const-string v41, "android"

    invoke-direct/range {v39 .. v41}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 123
    invoke-virtual/range {p2 .. p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v39

    invoke-virtual/range {v39 .. v39}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v39

    move-object/from16 v0, v39

    iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    move-object/from16 v39, v0

    .line 124
    invoke-virtual/range {v39 .. v39}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v18

    .line 125
    .local v18, locale:Ljava/lang/String;
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "lang"

    move-object/from16 v0, v39

    move-object/from16 v1, v40

    move-object/from16 v2, v18

    invoke-direct {v0, v1, v2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 128
    const-string v39, "phone"

    move-object/from16 v0, p2

    move-object/from16 v1, v39

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v34

    .line 127
    check-cast v34, Landroid/telephony/TelephonyManager;

    .line 130
    .local v34, tManager:Landroid/telephony/TelephonyManager;
    invoke-virtual/range {v34 .. v34}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v7

    .line 132
    .local v7, device_id:Ljava/lang/String;
    if-nez v7, :cond_1

    .line 133
    const-string v39, "wifi"

    move-object/from16 v0, p2

    move-object/from16 v1, v39

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v38

    check-cast v38, Landroid/net/wifi/WifiManager;

    .line 134
    .local v38, wm:Landroid/net/wifi/WifiManager;
    invoke-virtual/range {v38 .. v38}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object v39

    invoke-virtual/range {v39 .. v39}, Landroid/net/wifi/WifiInfo;->getMacAddress()Ljava/lang/String;

    move-result-object v7

    .line 137
    .end local v38           #wm:Landroid/net/wifi/WifiManager;
    :cond_1
    invoke-static {v7}, Lcom/opongo/blogapp/utils/DigestUtils;->md5(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v35

    .line 138
    .local v35, uid:Ljava/lang/String;
    new-instance v39, Lorg/apache/http/message/BasicNameValuePair;

    const-string v40, "uid"

    move-object/from16 v0, v39

    move-object/from16 v1, v40

    move-object/from16 v2, v35

    invoke-direct {v0, v1, v2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v0, p1

    move-object/from16 v1, v39

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 141
    if-eqz p3, :cond_2

    .line 142
    invoke-static/range {p1 .. p2}, Lcom/opongo/blogapp/api/HTTPConnect;->sendToStats(Ljava/util/List;Landroid/content/Context;)Lorg/json/JSONObject;

    .line 145
    :cond_2
    const/4 v15, 0x0

    .line 147
    .local v15, json:Lorg/json/JSONObject;
    if-eqz p4, :cond_f

    .line 149
    :try_start_2
    new-instance v4, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v4}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 152
    .local v4, bos:Ljava/io/ByteArrayOutputStream;
    const/16 v39, 0x0

    aget-object v39, p4, v39

    invoke-virtual/range {v39 .. v39}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v37

    .line 153
    .local v37, width:I
    const/16 v39, 0x0

    aget-object v39, p4, v39

    invoke-virtual/range {v39 .. v39}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v11

    .line 155
    .local v11, height:I
    const/16 v39, 0x0

    aget-object v20, p4, v39

    .line 157
    .local v20, newBitmap:Landroid/graphics/Bitmap;
    const/16 v39, 0x258

    move/from16 v0, v37

    move/from16 v1, v39

    if-le v0, v1, :cond_3

    const/16 v39, 0x258

    move/from16 v0, v39

    if-le v11, v0, :cond_3

    .line 158
    const/16 v22, 0x258

    .line 159
    .local v22, newWidth:I
    const/16 v21, 0x258

    .line 160
    .local v21, newHeight:I
    const/high16 v33, 0x3f80

    .line 162
    .local v33, scale:F
    move/from16 v0, v37

    if-le v0, v11, :cond_a

    .line 163
    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v39, v0

    move/from16 v0, v37

    int-to-float v0, v0

    move/from16 v40, v0

    div-float v33, v39, v40

    .line 167
    :goto_3
    const/16 v39, 0x0

    aget-object v39, p4, v39

    move/from16 v0, v37

    int-to-float v0, v0

    move/from16 v40, v0

    mul-float v40, v40, v33

    move/from16 v0, v40

    float-to-int v0, v0

    move/from16 v40, v0

    int-to-float v0, v11

    move/from16 v41, v0

    mul-float v41, v41, v33

    move/from16 v0, v41

    float-to-int v0, v0

    move/from16 v41, v0

    const/16 v42, 0x1

    invoke-static/range {v39 .. v42}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;

    move-result-object v20

    .line 170
    .end local v21           #newHeight:I
    .end local v22           #newWidth:I
    .end local v33           #scale:F
    :cond_3
    sget-object v39, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v40, 0x4b

    move-object/from16 v0, v20

    move-object/from16 v1, v39

    move/from16 v2, v40

    invoke-virtual {v0, v1, v2, v4}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 172
    invoke-virtual {v4}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v6

    .line 174
    .local v6, data:[B
    new-instance v3, Lorg/apache/http/entity/mime/content/ByteArrayBody;

    const-string v39, "image/jpeg"

    const-string v40, "dealPhoto.png"

    move-object/from16 v0, v39

    move-object/from16 v1, v40

    invoke-direct {v3, v6, v0, v1}, Lorg/apache/http/entity/mime/content/ByteArrayBody;-><init>([BLjava/lang/String;Ljava/lang/String;)V

    .line 176
    .local v3, bab:Lorg/apache/http/entity/mime/content/ByteArrayBody;
    new-instance v28, Lorg/apache/http/entity/mime/MultipartEntity;

    .line 177
    sget-object v39, Lorg/apache/http/entity/mime/HttpMultipartMode;->BROWSER_COMPATIBLE:Lorg/apache/http/entity/mime/HttpMultipartMode;

    .line 176
    move-object/from16 v0, v28

    move-object/from16 v1, v39

    invoke-direct {v0, v1}, Lorg/apache/http/entity/mime/MultipartEntity;-><init>(Lorg/apache/http/entity/mime/HttpMultipartMode;)V

    .line 179
    .local v28, reqEntity:Lorg/apache/http/entity/mime/MultipartEntity;
    const-string v39, "image"

    move-object/from16 v0, v28

    move-object/from16 v1, v39

    invoke-virtual {v0, v1, v3}, Lorg/apache/http/entity/mime/MultipartEntity;->addPart(Ljava/lang/String;Lorg/apache/http/entity/mime/content/ContentBody;)V
    :try_end_2
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_2 .. :try_end_2} :catch_4
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_6
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_7

    .line 182
    :try_start_3
    invoke-interface/range {p1 .. p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v39

    :cond_4
    :goto_4
    invoke-interface/range {v39 .. v39}, Ljava/util/Iterator;->hasNext()Z
    :try_end_3
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_3 .. :try_end_3} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_3 .. :try_end_3} :catch_4
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_5
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_6
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_7

    move-result v40

    if-nez v40, :cond_b

    .line 191
    :goto_5
    :try_start_4
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_5

    .line 192
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v40, Ljava/lang/StringBuilder;

    const-string v41, "Params URL: "

    invoke-direct/range {v40 .. v41}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v41, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;

    invoke-virtual/range {v41 .. v41}, Ljava/net/URL;->toString()Ljava/lang/String;

    move-result-object v41

    invoke-virtual/range {v40 .. v41}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 193
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v40, Ljava/lang/StringBuilder;

    const-string v41, "Params: "

    invoke-direct/range {v40 .. v41}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {v28 .. v28}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v41

    invoke-virtual/range {v40 .. v41}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 196
    :cond_5
    move-object/from16 v0, v26

    move-object/from16 v1, v28

    invoke-virtual {v0, v1}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 215
    .end local v3           #bab:Lorg/apache/http/entity/mime/content/ByteArrayBody;
    .end local v4           #bos:Ljava/io/ByteArrayOutputStream;
    .end local v6           #data:[B
    .end local v11           #height:I
    .end local v20           #newBitmap:Landroid/graphics/Bitmap;
    .end local v28           #reqEntity:Lorg/apache/http/entity/mime/MultipartEntity;
    .end local v37           #width:I
    :goto_6
    move-object/from16 v0, v26

    invoke-interface {v12, v0}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v29

    .line 219
    .local v29, response:Lorg/apache/http/HttpResponse;
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_6

    .line 220
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    invoke-interface/range {v29 .. v29}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 222
    :cond_6
    invoke-interface/range {v29 .. v29}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v10

    .line 224
    .local v10, entity:Lorg/apache/http/HttpEntity;
    if-eqz v10, :cond_d

    .line 226
    invoke-interface {v10}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object v14

    .line 227
    .local v14, instream:Ljava/io/InputStream;
    new-instance v27, Ljava/io/BufferedReader;

    .line 228
    new-instance v39, Ljava/io/InputStreamReader;

    move-object/from16 v0, v39

    invoke-direct {v0, v14}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    .line 227
    move-object/from16 v0, v27

    move-object/from16 v1, v39

    invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 229
    .local v27, reader:Ljava/io/BufferedReader;
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    .line 231
    .local v32, sb:Ljava/lang/StringBuilder;
    const/16 v17, 0x0

    .line 232
    .local v17, line:Ljava/lang/String;
    :goto_7
    invoke-virtual/range {v27 .. v27}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v17

    if-nez v17, :cond_16

    .line 235
    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v30

    .line 237
    .local v30, result:Ljava/lang/String;
    const-string v25, "\\[BSDATA\\](.*?)\\[\\/BSDATA\\]"

    .line 238
    .local v25, pattern:Ljava/lang/String;
    move-object/from16 v31, v30

    .line 240
    .local v31, s:Ljava/lang/String;
    invoke-static/range {v25 .. v25}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v39

    move-object/from16 v0, v39

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v19

    .line 241
    .local v19, m:Ljava/util/regex/Matcher;
    :goto_8
    invoke-virtual/range {v19 .. v19}, Ljava/util/regex/Matcher;->find()Z

    move-result v39

    if-nez v39, :cond_18

    .line 244
    invoke-virtual {v14}, Ljava/io/InputStream;->close()V

    .line 246
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_7

    .line 247
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v40, Ljava/lang/StringBuilder;

    const-string v41, "Params result: "

    invoke-direct/range {v40 .. v41}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v40

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 249
    :cond_7
    new-instance v16, Lorg/json/JSONObject;

    move-object/from16 v0, v16

    move-object/from16 v1, v30

    invoke-direct {v0, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_4
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_4 .. :try_end_4} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_4 .. :try_end_4} :catch_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_5
    .catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_6
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_7

    .end local v15           #json:Lorg/json/JSONObject;
    .local v16, json:Lorg/json/JSONObject;
    move-object/from16 v15, v16

    .line 285
    .end local v10           #entity:Lorg/apache/http/HttpEntity;
    .end local v14           #instream:Ljava/io/InputStream;
    .end local v16           #json:Lorg/json/JSONObject;
    .end local v17           #line:Ljava/lang/String;
    .end local v19           #m:Ljava/util/regex/Matcher;
    .end local v25           #pattern:Ljava/lang/String;
    .end local v27           #reader:Ljava/io/BufferedReader;
    .end local v29           #response:Lorg/apache/http/HttpResponse;
    .end local v30           #result:Ljava/lang/String;
    .end local v31           #s:Ljava/lang/String;
    .end local v32           #sb:Ljava/lang/StringBuilder;
    .restart local v15       #json:Lorg/json/JSONObject;
    :goto_9
    return-object v16

    .line 77
    .end local v5           #bp:Ljava/lang/String;
    .end local v7           #device_id:Ljava/lang/String;
    .end local v15           #json:Lorg/json/JSONObject;
    .end local v18           #locale:Ljava/lang/String;
    .end local v26           #postMethod:Lorg/apache/http/client/methods/HttpPost;
    .end local v34           #tManager:Landroid/telephony/TelephonyManager;
    .end local v35           #uid:Ljava/lang/String;
    .end local v36           #versionName:Ljava/lang/String;
    :cond_8
    :try_start_5
    new-instance v39, Ljava/net/URL;

    const v40, 0x7f070007

    move-object/from16 v0, p2

    move/from16 v1, v40

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v40

    invoke-direct/range {v39 .. v40}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    sput-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;
    :try_end_5
    .catch Ljava/net/MalformedURLException; {:try_start_5 .. :try_end_5} :catch_0

    goto/16 :goto_0

    .line 80
    :catch_0
    move-exception v8

    .line 82
    .local v8, e:Ljava/net/MalformedURLException;
    invoke-virtual {v8}, Ljava/net/MalformedURLException;->printStackTrace()V

    goto/16 :goto_0

    .line 90
    .end local v8           #e:Ljava/net/MalformedURLException;
    :cond_9
    const v39, 0x7f07000a

    move-object/from16 v0, p2

    move/from16 v1, v39

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v39

    .line 89
    sput-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->bundleIdentifierString:Ljava/lang/String;

    goto/16 :goto_1

    .line 98
    .restart local v36       #versionName:Ljava/lang/String;
    :catch_1
    move-exception v9

    .line 100
    .local v9, e1:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v9}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto/16 :goto_2

    .line 165
    .end local v9           #e1:Landroid/content/pm/PackageManager$NameNotFoundException;
    .restart local v4       #bos:Ljava/io/ByteArrayOutputStream;
    .restart local v5       #bp:Ljava/lang/String;
    .restart local v7       #device_id:Ljava/lang/String;
    .restart local v11       #height:I
    .restart local v15       #json:Lorg/json/JSONObject;
    .restart local v18       #locale:Ljava/lang/String;
    .restart local v20       #newBitmap:Landroid/graphics/Bitmap;
    .restart local v21       #newHeight:I
    .restart local v22       #newWidth:I
    .restart local v26       #postMethod:Lorg/apache/http/client/methods/HttpPost;
    .restart local v33       #scale:F
    .restart local v34       #tManager:Landroid/telephony/TelephonyManager;
    .restart local v35       #uid:Ljava/lang/String;
    .restart local v37       #width:I
    :cond_a
    move/from16 v0, v21

    int-to-float v0, v0

    move/from16 v39, v0

    int-to-float v0, v11

    move/from16 v40, v0

    div-float v33, v39, v40

    goto/16 :goto_3

    .line 182
    .end local v21           #newHeight:I
    .end local v22           #newWidth:I
    .end local v33           #scale:F
    .restart local v3       #bab:Lorg/apache/http/entity/mime/content/ByteArrayBody;
    .restart local v6       #data:[B
    .restart local v28       #reqEntity:Lorg/apache/http/entity/mime/MultipartEntity;
    :cond_b
    :try_start_6
    invoke-interface/range {v39 .. v39}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v24

    check-cast v24, Lorg/apache/http/NameValuePair;

    .line 183
    .local v24, p:Lorg/apache/http/NameValuePair;
    invoke-interface/range {v24 .. v24}, Lorg/apache/http/NameValuePair;->getValue()Ljava/lang/String;

    move-result-object v40

    const-string v41, ""

    invoke-virtual/range {v40 .. v41}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v40

    if-nez v40, :cond_4

    .line 184
    invoke-interface/range {v24 .. v24}, Lorg/apache/http/NameValuePair;->getName()Ljava/lang/String;

    move-result-object v40

    new-instance v41, Lorg/apache/http/entity/mime/content/StringBody;

    invoke-interface/range {v24 .. v24}, Lorg/apache/http/NameValuePair;->getValue()Ljava/lang/String;

    move-result-object v42

    invoke-static/range {v42 .. v42}, Lorg/apache/commons/lang3/StringEscapeUtils;->escapeHtml3(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v42

    invoke-direct/range {v41 .. v42}, Lorg/apache/http/entity/mime/content/StringBody;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v28

    move-object/from16 v1, v40

    move-object/from16 v2, v41

    invoke-virtual {v0, v1, v2}, Lorg/apache/http/entity/mime/MultipartEntity;->addPart(Ljava/lang/String;Lorg/apache/http/entity/mime/content/ContentBody;)V
    :try_end_6
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_6 .. :try_end_6} :catch_2
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_6 .. :try_end_6} :catch_4
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5
    .catch Lorg/json/JSONException; {:try_start_6 .. :try_end_6} :catch_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_7

    goto/16 :goto_4

    .line 186
    .end local v24           #p:Lorg/apache/http/NameValuePair;
    :catch_2
    move-exception v9

    .line 188
    .local v9, e1:Ljava/io/UnsupportedEncodingException;
    :try_start_7
    invoke-virtual {v9}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V
    :try_end_7
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_7 .. :try_end_7} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_7 .. :try_end_7} :catch_4
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_5
    .catch Lorg/json/JSONException; {:try_start_7 .. :try_end_7} :catch_6
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_7

    goto/16 :goto_5

    .line 253
    .end local v3           #bab:Lorg/apache/http/entity/mime/content/ByteArrayBody;
    .end local v4           #bos:Ljava/io/ByteArrayOutputStream;
    .end local v6           #data:[B
    .end local v9           #e1:Ljava/io/UnsupportedEncodingException;
    .end local v11           #height:I
    .end local v20           #newBitmap:Landroid/graphics/Bitmap;
    .end local v28           #reqEntity:Lorg/apache/http/entity/mime/MultipartEntity;
    .end local v37           #width:I
    :catch_3
    move-exception v8

    .line 254
    .local v8, e:Lorg/apache/http/client/ClientProtocolException;
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_c

    .line 255
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "ClientPrococolException in getJSONObject"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 256
    :cond_c
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_d

    invoke-virtual {v8}, Lorg/apache/http/client/ClientProtocolException;->printStackTrace()V

    .line 280
    .end local v8           #e:Lorg/apache/http/client/ClientProtocolException;
    :cond_d
    :goto_a
    new-instance v13, Landroid/content/Intent;

    const-string v39, "com.opongo.noInternet"

    move-object/from16 v0, v39

    invoke-direct {v13, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 281
    .local v13, i:Landroid/content/Intent;
    move-object/from16 v0, p2

    invoke-virtual {v0, v13}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 283
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_e

    .line 284
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "We have a null object"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 285
    :cond_e
    const/16 v16, 0x0

    goto/16 :goto_9

    .line 198
    .end local v13           #i:Landroid/content/Intent;
    :cond_f
    :try_start_8
    new-instance v23, Ljava/util/ArrayList;

    invoke-direct/range {v23 .. v23}, Ljava/util/ArrayList;-><init>()V

    .line 200
    .local v23, nv:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-interface/range {p1 .. p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v39

    :cond_10
    :goto_b
    invoke-interface/range {v39 .. v39}, Ljava/util/Iterator;->hasNext()Z

    move-result v40

    if-nez v40, :cond_14

    .line 206
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_11

    .line 207
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v40, Ljava/lang/StringBuilder;

    const-string v41, "Params URL: "

    invoke-direct/range {v40 .. v41}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v41, Lcom/opongo/blogapp/api/HTTPConnect;->url:Ljava/net/URL;

    invoke-virtual/range {v41 .. v41}, Ljava/net/URL;->toString()Ljava/lang/String;

    move-result-object v41

    invoke-virtual/range {v40 .. v41}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 208
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    new-instance v40, Ljava/lang/StringBuilder;

    const-string v41, "Params: "

    invoke-direct/range {v40 .. v41}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {v23 .. v23}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v41

    invoke-virtual/range {v40 .. v41}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v40

    invoke-virtual/range {v40 .. v40}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v40

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 211
    :cond_11
    new-instance v39, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    .line 212
    const-string v40, "UTF-8"

    move-object/from16 v0, v39

    move-object/from16 v1, v23

    move-object/from16 v2, v40

    invoke-direct {v0, v1, v2}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    .line 211
    move-object/from16 v0, v26

    move-object/from16 v1, v39

    invoke-virtual {v0, v1}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V
    :try_end_8
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_8 .. :try_end_8} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_8 .. :try_end_8} :catch_4
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_5
    .catch Lorg/json/JSONException; {:try_start_8 .. :try_end_8} :catch_6
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_7

    goto/16 :goto_6

    .line 257
    .end local v23           #nv:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    :catch_4
    move-exception v8

    .line 258
    .local v8, e:Ljava/net/UnknownHostException;
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_12

    .line 259
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "UnknownHostException in getJSONObject"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 260
    :cond_12
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_13

    .line 261
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "This most likely means we have no network"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 262
    :cond_13
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_d

    invoke-virtual {v8}, Ljava/net/UnknownHostException;->printStackTrace()V

    goto/16 :goto_a

    .line 200
    .end local v8           #e:Ljava/net/UnknownHostException;
    .restart local v23       #nv:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    :cond_14
    :try_start_9
    invoke-interface/range {v39 .. v39}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v24

    check-cast v24, Lorg/apache/http/NameValuePair;

    .line 201
    .restart local v24       #p:Lorg/apache/http/NameValuePair;
    invoke-interface/range {v24 .. v24}, Lorg/apache/http/NameValuePair;->getValue()Ljava/lang/String;

    move-result-object v40

    const-string v41, ""

    invoke-virtual/range {v40 .. v41}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v40

    if-nez v40, :cond_10

    .line 202
    new-instance v40, Lorg/apache/http/message/BasicNameValuePair;

    invoke-interface/range {v24 .. v24}, Lorg/apache/http/NameValuePair;->getName()Ljava/lang/String;

    move-result-object v41

    .line 203
    invoke-interface/range {v24 .. v24}, Lorg/apache/http/NameValuePair;->getValue()Ljava/lang/String;

    move-result-object v42

    invoke-static/range {v42 .. v42}, Lorg/apache/commons/lang3/StringEscapeUtils;->escapeHtml3(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v42

    invoke-static/range {v42 .. v42}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v42

    invoke-direct/range {v40 .. v42}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 202
    move-object/from16 v0, v23

    move-object/from16 v1, v40

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_9
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_9 .. :try_end_9} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_9 .. :try_end_9} :catch_4
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_5
    .catch Lorg/json/JSONException; {:try_start_9 .. :try_end_9} :catch_6
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_7

    goto/16 :goto_b

    .line 264
    .end local v23           #nv:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    .end local v24           #p:Lorg/apache/http/NameValuePair;
    :catch_5
    move-exception v8

    .line 265
    .local v8, e:Ljava/io/IOException;
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_15

    .line 266
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "IOException in getJSONObject"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 267
    :cond_15
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_d

    invoke-virtual {v8}, Ljava/io/IOException;->printStackTrace()V

    goto/16 :goto_a

    .line 233
    .end local v8           #e:Ljava/io/IOException;
    .restart local v10       #entity:Lorg/apache/http/HttpEntity;
    .restart local v14       #instream:Ljava/io/InputStream;
    .restart local v17       #line:Ljava/lang/String;
    .restart local v27       #reader:Ljava/io/BufferedReader;
    .restart local v29       #response:Lorg/apache/http/HttpResponse;
    .restart local v32       #sb:Ljava/lang/StringBuilder;
    :cond_16
    :try_start_a
    new-instance v39, Ljava/lang/StringBuilder;

    invoke-static/range {v17 .. v17}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v40

    invoke-direct/range {v39 .. v40}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v40, "n"

    invoke-virtual/range {v39 .. v40}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v39

    invoke-virtual/range {v39 .. v39}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v39

    move-object/from16 v0, v32

    move-object/from16 v1, v39

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_a
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_a .. :try_end_a} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_a .. :try_end_a} :catch_4
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_5
    .catch Lorg/json/JSONException; {:try_start_a .. :try_end_a} :catch_6
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_7

    goto/16 :goto_7

    .line 270
    .end local v10           #entity:Lorg/apache/http/HttpEntity;
    .end local v14           #instream:Ljava/io/InputStream;
    .end local v17           #line:Ljava/lang/String;
    .end local v27           #reader:Ljava/io/BufferedReader;
    .end local v29           #response:Lorg/apache/http/HttpResponse;
    .end local v32           #sb:Ljava/lang/StringBuilder;
    :catch_6
    move-exception v8

    .line 271
    .local v8, e:Lorg/json/JSONException;
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_17

    .line 272
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "JSONException in getJSONObject"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 273
    :cond_17
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_d

    invoke-virtual {v8}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_a

    .line 242
    .end local v8           #e:Lorg/json/JSONException;
    .restart local v10       #entity:Lorg/apache/http/HttpEntity;
    .restart local v14       #instream:Ljava/io/InputStream;
    .restart local v17       #line:Ljava/lang/String;
    .restart local v19       #m:Ljava/util/regex/Matcher;
    .restart local v25       #pattern:Ljava/lang/String;
    .restart local v27       #reader:Ljava/io/BufferedReader;
    .restart local v29       #response:Lorg/apache/http/HttpResponse;
    .restart local v30       #result:Ljava/lang/String;
    .restart local v31       #s:Ljava/lang/String;
    .restart local v32       #sb:Ljava/lang/StringBuilder;
    :cond_18
    const/16 v39, 0x1

    :try_start_b
    move-object/from16 v0, v19

    move/from16 v1, v39

    invoke-virtual {v0, v1}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
    :try_end_b
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_b .. :try_end_b} :catch_3
    .catch Ljava/net/UnknownHostException; {:try_start_b .. :try_end_b} :catch_4
    .catch Ljava/io/IOException; {:try_start_b .. :try_end_b} :catch_5
    .catch Lorg/json/JSONException; {:try_start_b .. :try_end_b} :catch_6
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_7

    move-result-object v30

    goto/16 :goto_8

    .line 274
    .end local v10           #entity:Lorg/apache/http/HttpEntity;
    .end local v14           #instream:Ljava/io/InputStream;
    .end local v17           #line:Ljava/lang/String;
    .end local v19           #m:Ljava/util/regex/Matcher;
    .end local v25           #pattern:Ljava/lang/String;
    .end local v27           #reader:Ljava/io/BufferedReader;
    .end local v29           #response:Lorg/apache/http/HttpResponse;
    .end local v30           #result:Ljava/lang/String;
    .end local v31           #s:Ljava/lang/String;
    .end local v32           #sb:Ljava/lang/StringBuilder;
    :catch_7
    move-exception v8

    .line 275
    .local v8, e:Ljava/lang/Exception;
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_19

    .line 276
    sget-object v39, Lcom/opongo/blogapp/api/HTTPConnect;->TAG:Ljava/lang/String;

    const-string v40, "Generic Exception in getJSONObject"

    invoke-static/range {v39 .. v40}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 277
    :cond_19
    sget-boolean v39, Lcom/opongo/blogapp/api/HTTPConnect;->DEBUG:Z

    if-eqz v39, :cond_d

    invoke-virtual {v8}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_a
.end method
